namespace GroupSix.Domain.Events;

/// <summary>
/// 领域事件分发器接口
/// </summary>
public interface IDomainEventDispatcher
{
    /// <summary>
    /// 分发领域事件
    /// </summary>
    /// <param name="domainEvent">领域事件</param>
    Task DispatchAsync(IDomainEvent domainEvent);
}

/// <summary>
/// 领域事件基接口
/// </summary>
public interface IDomainEvent
{
    DateTime OccurredOn { get; }
} 